package com.macro.mall.tiny.modules.pms.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pms_product_sku_attr_value")
@Schema(description = "SKU属性属性值表")
public class ProductSkuAttrValue implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Integer id;

    @Schema(description = "SKU ID")
    private Integer skuId;

    @Schema(description = "自定义属性")
    private String pnValue;

    @Schema(description = "自定义属性值")
    private String pvValue;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @Schema(description = "软删除：0-正常，1-已删除")
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer delFlag;
}
